The AutoShare AppleScript Tutorial



AutoShare, a freeware EIMS companion application.
A list server and auto-responder for the Macintosh.
This document is copyright © 1997 Mikael Hansen.


Sites on scripting

There are several AppleScript links such as Information about Frontier is available at

Scripting in general

The Support for scripting section of the AutoShare 2.0 Documentation, which you may want to read before proceeding with the following, discusses the Macintosh scripting environment in general.

Your first AutoShare AppleScript

On the Mac running AutoShare, double-click the Script Editor icon. In the untitled window, type
tell application "AutoShare.68k" -- or enter "AutoShare.ppc" if PowerPC
  GetMisc -- Get the Miscellaneous settings
end tell -- not using AutoShare anymore
Text following a double dash is comments only. Click on the Click Syntax button to verify that you have entered the script contents without errors. Once verified, select Save As from the File menu, enter a file name of Script1, set kind to Compiled Script and click the Save button.

Congratulations! You have just completed your first AutoShare AppleScript!

Click on the Run button to run the script. When the beach ball stops spinning, select Show Result from the Controls menu, unless the the result window is open already.

This window lists your Miscellaneous settings as pairs of property names and contents. If you drag the AutoShare icon onto the Script Editor icon, a new window opens showing the AppleScript dictionary of AutoShare. To the left, click on the GetMisc command and then further down the Misc Options class. You can see how the properties of the Misc Options class correspond to those in the the result window.


To be continued...
Last updated on December 4 1997 by Mikael Hansen